import React, { Component } from 'react';
import { Alert } from 'antd';
import '../css/index.css';
import { Form, Input, Tooltip, Icon, Cascader, Select, Row, Col, Checkbox, Button } from 'antd';
import {router} from 'react-router';

const FormItem = Form.Item;
class  RegistrationForm  extends  React.Component{

        
  render(){
      console.log(this.props.form);
       const { getFieldDecorator } = this.props.form;
       return <div className="RegistrationForm">
                  <Form onSubmit={this.handleSubmit}>
                        <FormItem
            label="E-mail"
          hasFeedback
        >
          {getFieldDecorator('email', {
            rules: [{
              type: 'email', message: '邮箱格式不正确',
            }, {
              required: true, message: '请输入您的邮箱',
            }],
          })(
            <Input />
          )}
        </FormItem>
                      </Form>
        </div>;
    }

}

export default Form.create()(RegistrationForm);